package com.homedo.odin.solution.contract.mng.request.comment;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ：ZhangLei
 * @Date ：2018/4/10
 */
@ApiModel(description = "查询所有评论")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserCommentListRequestBean {

    @ApiModelProperty("栏目标题")
    private String columnTitle;

    @ApiModelProperty(value = "栏目类型 评价类型 1：专栏，2：视频 ，3：方案，4：规范", required = false)
    @Min(message = "栏目类型非法", value = 0)
    private Integer type;

    @ApiModelProperty("回复状态 0：未回复，1：已回复")
    @Min(message = "回复状态非法", value = 0)
    private Integer replyStatus;

    @ApiModelProperty("审核状态")
    @Min(message = "审核状态非法", value = 0)
    private Integer auditStatus;

    @ApiModelProperty("创建开始时间")
    @Min(message = "创建开始时间非法", value = 0)
    private Long createStartDate;

    @ApiModelProperty("创建结束时间")
    @Min(message = "创建结束时间非法", value = 0)
    private Long createEndDate;

    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码不能为空")
    @Min(message = "当前页码非法", value = 0)
    private Integer pageNum;

    @ApiModelProperty(value = "每页记录数", required = true)
    @NotNull(message = "每页记录数不能为空")
    @Min(message = "每页记录数非法", value = 0)
    private Integer pageSize;
}
